package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class CommissionRecord {

    @Excel(name = "提成类型",readConverterExp = "0=线下提成,1=品牌提成,2=商城提成,3=助理提成")
    private Integer type; // 提成类型(0=线下,1=品牌,2=商城,3=助理)

    @Excel(name = "销售部门")
    private String salesDept; // 销售部门

    @Excel(name = "销售员")
    private String salesName;     // 销售员

    @Excel(name = "组织编码")
    private String orgCode;    // 组织编码

    @Excel(name = "客户代码")
    private String customerNo;    // 客户代码

    @Excel(name = "客户提成等级")
    private String commissionLevel;   // 客户提成等级

    @Excel(name = "客户提成比例")
    private BigDecimal commissionRate; // 客户提成比例

    @Excel(name = "销售金额(￥)")
    private BigDecimal salesAmount; // 销售金额(￥)

    @Excel(name = "实际回款(￥)")
    private BigDecimal actualPayment; // 实际回款(￥)

    @Excel(name = "采购成本(￥)")
    private BigDecimal purchaseCost; // 采购成本(￥)

    @Excel(name = "系统运费(￥)")
    private BigDecimal systemFreight; // 系统运费(￥)

    @Excel(name = "实际运费(￥)")
    private BigDecimal actualFreight; // 实际运费(￥)

    @Excel(name = "商城手续费(￥)")
    private BigDecimal chargePrice; // 商城手续费

    @Excel(name = "毛利(￥)")
    private BigDecimal grossProfit; // 毛利(￥)

    @Excel(name = "售后损失金额")
    private BigDecimal lossPrice; // 售后损失金额

    @Excel(name = "实际毛利(￥)")
    private BigDecimal actualGrossProfit; // 实际毛利(￥)

    @Excel(name = "X≤10000")
    private BigDecimal commissionUpTo10000; // X≤10000

    @Excel(name = "10000<X≤50000")
    private BigDecimal commission10000To50000; // 10000<X≤50000

    @Excel(name = "50000<X≤100000")
    private BigDecimal commission50000To100000; // 50000<X≤100000

    @Excel(name = "100000以上")
    private BigDecimal commissionAbove100000; // 100000以上

    @Excel(name = "应发提成")
    private BigDecimal shouldPayCommission; // 应发提成

    @Excel(name = "账期逾期扣减")
    private BigDecimal dueDeduction; // 账期逾期扣减

    @Excel(name = "实发提成")
    private BigDecimal actualCommission; // 实发提成

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提成年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commissionDate; // 提成月份

    private Long extendId; //提成扩展ID

    @Excel(name = "备注")
    private String remark; // 备注

}
